package br.cns;

import static br.cns.MetricHelper.getInstance;
import static br.cns.TMetric.ALGEBRAIC_CONNECTIVITY;

import org.junit.Test;
public class AlgebraicConnectivityTest {

	@Test
	public void testCalculate() {
		Integer[][] net = new Integer[][]{
						{0, 1, 0, 0, 1, 0},
						{1, 0, 1, 0, 1, 0},
						{0, 1, 0, 1, 0, 0},
						{0, 0, 1, 0, 1, 1},
						{1, 1, 0, 1, 0, 0},
						{0, 0, 0, 1, 0, 0}};

		assert((int)(getInstance().calculate(ALGEBRAIC_CONNECTIVITY, net)*1000) == 722);
	}
	
}
